package com.fowo.api.model.product.supplier.quote;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 产品供应商报价 导入导出辅助模型 */
@Getter
@Setter
public class ProductSupplierQuoteExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属产品")
  private String parentProductName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品")
  private Long parentProduct;

  @NotNull(message = "供应商不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*供应商")
  private String supplierIdSupplierName;

  @ExcelIgnore
  @ExcelProperty(value = "*供应商")
  private Long supplierId;

  @ExcelProperty(value = "最小采购量")
  private Integer moq;

  @Size(max = 10, message = "工费长度不能超过20")
  @ExcelProperty(value = "工费")
  private java.math.BigDecimal laborCost;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "银价")
  private java.math.BigDecimal silverPrices;

  @Size(max = 50, message = "银重长度不能超过20")
  @ExcelProperty(value = "银重")
  private java.math.BigDecimal silverWeight;

  @ExcelProperty(value = "运费")
  private java.math.BigDecimal freight;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "是否开票")
  private String isInvoice;

  @ExcelProperty(value = "税率")
  private java.math.BigDecimal taxRate;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "实际交货期")
  private java.util.Date deliveryDate;

  @Size(max = 255, message = "报价备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "报价备注")
  private String remark;
}
